﻿<%@ Page Language="VB" MasterPageFile="~/Pages/Admin/AdminMasterPage.master" AutoEventWireup="false"
    CodeFile="Forum.aspx.vb" Inherits="Pages_Admin_Forum" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="repeaterLARGEforum">
    <asp:Repeater ID="rptForumAdmin" runat="server">
    <ItemTemplate>
    <div id="repeaterBoxforum">
   <strong> <%#DataBinder.Eval(Container.DataItem, "Header")%></strong><br />
    <%#DataBinder.Eval(Container.DataItem, "Texten")%><br />
    Av: <%#DataBinder.Eval(Container.DataItem, "Name")%>, <%#DataBinder.Eval(Container.DataItem, "Email")%><br />
    <%#CType(DataBinder.Eval(Container.DataItem, "DateNews"), DateTime)%><br />
    <a href="Updatepost.aspx?id=<%#DataBinder.Eval(Container.DataItem, "NewsId")%>"  onclick="return confirm('Är du säker på att du vill godkänna inlägget?')" ><img src="Images/uppdatera.jpg" border="0" alt="Uppdatera" height="20px" width="30" style="float: left;" /></a>
  <a href="Deletepost.aspx?id=<%#DataBinder.Eval(Container.DataItem, "NewsId")%>"  onclick="return confirm('Är du säker på att du vill ta bort inlägget?')" ><img src="Images/trash_16x16.gif" border="0" alt="Ta bort" style="float: right;" /></a>
 <br />
            
    <hr />
    
    </div>
    
    </ItemTemplate>
    </asp:Repeater>
    
    </div>
    <div id="controlboxSMALLforum">
        <!--knappar menyn-->
        <asp:Button ID="btnUpdate" runat="server" Text="Spara ändring" />
        <br />

        </div>
</asp:Content>
